#include<stdio.h>
#define MaxSize 10

typedef struct {
    int Data[MaxSize];
    int length;
} SqlList;

void InitList(SqlList *L) {
    for (int i = 0; i < MaxSize; ++i) {
        L->Data[i] = 0;
    }
    L->length = 0;
}

void printList(SqlList *L) {
    for (int i = 0; i < L->length; ++i) {
        printf("当前数据Data[%d]：%d\n", i, L->Data[i]);
    }
    printf("当前长度：%d\n", L->length);
}

//熟悉顺序表的代码实现
int main() {
    SqlList L;
    InitList(&L);
    printList(&L);
    return 0;
}
